package Server;

import javax.swing.JFrame;
import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.Rectangle;
import javax.swing.JTextField;

public class MainScreen extends JFrame{

	private JLabel jLabelServer = null;
	private JPanel jPanelServer = null;
	private JLabel jLabelServer1 = null;
	private JLabel jLabelNum = null;
	static JTextField jTextFieldNum = null;
	private JLabel jLabelNumc = null;
	static JTextField jTextFieldNumc = null;
	JTextField jTextFieldMessage = null;

	/**
	 * This method initializes 
	 * 
	 */
	public MainScreen() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        
                this.setSize(new Dimension(600, 600));
                this.setContentPane(getJPanelServer());
                this.setTitle("SERVER");        
			
	}

	/**
	 * This method initializes jPanelServer	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanelServer() {
		if (jPanelServer == null) {
			jLabelNumc = new JLabel();
			jLabelNumc.setBounds(new Rectangle(29, 273, 201, 30));
			jLabelNumc.setText("CLIENTS DESCREPTION:");
			jLabelNum = new JLabel();
			jLabelNum.setBounds(new Rectangle(30, 314, 201, 29));
			jLabelNum.setText("NUMBER OF ACTIONS PERFORMED:");
			jLabelServer1 = new JLabel();
			ImageIcon imageLogo = new ImageIcon("Flower_logo.jpg");						
			jLabelServer1.setIcon(imageLogo);
			jLabelServer1.setBounds(new Rectangle(75, 15, 421, 177));
			
			jPanelServer = new JPanel();
			jPanelServer.setLayout(null);
			jPanelServer.add(jLabelServer1, null);
			jPanelServer.add(jLabelNum, null);
			jPanelServer.add(getJTextFieldNum(), null);
			jPanelServer.add(jLabelNumc, null);
			jPanelServer.add(getJTextFieldNumc(), null);
			jPanelServer.add(getJTextFieldMessage(), null);
		}
		return jPanelServer;
	}

	/**
	 * This method initializes jTextFieldNum	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private static JTextField getJTextFieldNum() {
		if (jTextFieldNum == null) {
			jTextFieldNum = new JTextField();
			jTextFieldNum.setBounds(new Rectangle(235, 314, 169, 29));
		
		}
		return jTextFieldNum;
	}

	/**
	 * This method initializes jTextFieldNumc	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private static JTextField getJTextFieldNumc() {
		if (jTextFieldNumc == null) {
			jTextFieldNumc = new JTextField();
			jTextFieldNumc.setBounds(new Rectangle(235, 273, 170, 30));
		}
		return jTextFieldNumc;
	}

	/**
	 * This method initializes jTextFieldMessage	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldMessage() {
		if (jTextFieldMessage == null) {
			jTextFieldMessage = new JTextField();
			jTextFieldMessage.setBounds(new Rectangle(30, 394, 502, 38));
		}
		return jTextFieldMessage;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
